# Author: Mr.Xu
# @Time : 2019/12/5 23:32

# 应用ID
APPID = '2016101600696777'

# 签名算法 RSA or RSA2
SIGN_TYPE = "RSA2"

# 是否是沙箱环境
DEBUG = True

# 网关
if DEBUG:
    GATEWAY = "https://openapi.alipaydev.com/gateway.do?"
else:
    GATEWAY = "https://openapi.alipay.com/gateway.do?"


# 应用私钥：首行尾行是固定的，中间是一行私钥字符串（不能有其他字符）
APP_PRIVATE_KEY_STRING = '''-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAs2tDqB61s59uLMqutLkXZOQHtdP67ZXOYcVJXtbawBBTEb9PqFSECvvHm+pToK/+jZPeTtul7vSMzNCRF4i75VmQxXkuaRqDdlLlmmr2HDbCqojqPnIMhtbWSh0V8hNKwUaZkIcScmvxVNbBkeszLkIRJbhOmybeFWSXCnezpAt+q/Qqc2AMTM2a+l9oTJe+68jq8SByWD+zixOJxaYDI4EYgSeCnuYAClz3xN/TFlXU+gUWVftgJdXgWGOs6HPpQ3S+X58A9YixhpbqHm00kaikqB58N8Gugoou9Ml4xlj1O4pCBdYHGyAKGUn7OxZih64AAv+YO7jPrjcAUoCbXwIDAQABAoIBAQCTG+TqaNukvpkQYtMiXQzAbXOg84Ev4n/IjIFfIJ1Vk0z5JTqEE1/8vXpp7ZTKEOOPY+mIEPKZ3avAl1YPzM36/BgGwhh6lwGpN8kIdqD6ey/bsc0WjF6XBHnJZNXEmWrW1DM/XHCUnsrOPBOUuBtL12HF4ruY3SKEuehZ7dG+M0hOfH73/ssQJEQF87VY6c3feqwJbYw977/TfFjKWw2DyweS/N2+Y1JOqCvi0Nq4IbalPFOgEaoeYA2K7gcLsvuZyxXwyhgmIA23BpXjjO5OjOh6jGs1SjzsF1wT33evIZqf9QqKUGJPt4Ld76fSWdbCW+Loc8cy7NLRPCixgE/BAoGBAPNO0l6LOI1oj43CmDQp3wNGJVGSFEg9gvWPcRg+1s+zsZYYXPrdB1vr1YV3tZmf9nMBYgYjVyx3Y1UD66FvfTBSTpM5UY2zIHtsxXa0W3D6Aa94Yqr9jLA/BIfl43eBZSFEDy0PQCABGdSt2IWIXRV3E07ksTBW9HpFT6Xai97hAoGBALzHQi0S0W+y+GUHc8I3wSW/VYlalKwhF7gJRMUfwK9tsVYkHAbQr5BB+zxgXF55k6fbOmpPLB8P5/6X2ZSs+6lRFe8G6pXjhOWYq8RdmQhJ6QWMjbJu+OcA9hIaI6GG1/f0/Gk9I0UwEs1egsm7gD7S7zX6gpprJMK6HO+QNwI/AoGAU08h6Q1yh7jNrpR62SGdItnZ3VxPZYzqUnqTFuItW2ED5YjiDWOxKWBO9CxRGhETqb1HeyKOrsMSWAHHpLcv/mOwU+jEa+hxrtFHq6WFyeFQwmxOHI5EpfRt8LpecIT1w7YyHBOkuVCnL5N3GAHhHYBwNAtKQGsFuvgQlZGHYwECgYEApwZhzcGFnp+p2LGkQSXVddF5G+MSAc3xz3ob55F1iYGzUrT2Oy1u+GL4p+3WLBzDgNOeNqtALWeEayTtdPcsXx2IG4lyCxZX4lCXQVFS8ht62dcHE+XNwY1/KnsIJYVKFnAi1/Yo+7FSIXTKoTSNfohg79Bqt7euub+zlF5z3T8CgYEAjcuOlMs7I0Q6IWLaZ+6HQoRlAdI0W90OBZ9jcHJpfMwsmkL5MDqzy2biTkfeq4XXYiendWQyFSuREIu2ixYYxwyB2UZLJ0n99PBgz4NSUWjsl2Rlq4OfnT4UBnzKNtESxA9wedCuMrzzJ02/LZoxmZ2wPUK+avy9h8EJud6SQVE=
-----END RSA PRIVATE KEY-----
'''


# 阿里公钥：首行尾行是固定的，中间是一行公钥字符串（不能有其他字符）
ALIPAY_PUBLIC_KEY_STRING = '''-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz/yeSYk8dE+dQhYlRAzjUyqlGdnNZrncmabrIREFm5bor/0I7acYqh7ghD/Zpmvcd+3f1KB+WCnegJTPzK2Pev0O8wSOEQitEBus1bbNn5Jkh4gbBJMVaQ7EuC+CgwmNRz2J4ZytNVePUxGz6nZCFjEzxpRhRD5Mn4aGDDVULI9vd4pIqpQzxgLQHUvWhhogaUjxhiii68g8P5SpezHD/+zDKYiwq44KRLzi1UBIw+02v4S8xIFtvvm9Asm54LctD/CBokCuuJoD8JvrdhlR94o+/cOPcZlhV9zknwTq5qcSzTe91Pj4/39dQh9je+BW+x1WvOqS+i0hGkHTopXJBQIDAQAB
-----END PUBLIC KEY-----
'''